package com.advertisementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bill")
public class Bill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long negotiationId;

    private Long advertiserId;

    private Long deviceOwnerId;

    private BigDecimal amount;

    private String status; // UNPAID, PAID, OVERDUE

    private LocalDateTime dueDate;

    private LocalDateTime paymentDate;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    private String paymentMethod;
}